<template>
  <el-container class="login-container">
    <el-form
      ref="loginForm"
      :model="loginForm"
      class="login-form-box"
      label-width="80px"
      label-position="left"
    >
      <el-form-item label="账号">
        <el-input></el-input>
      </el-form-item>
      <el-form-item label="密码">
        <el-input></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary">登录</el-button>
      </el-form-item>
    </el-form>
  </el-container>
</template>
<script>
export default {
  name: "login",
  data() {
    return {
      loginForm: {},
    };
  },
};
</script>
<style lang="less" scoped>
.login-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url(../assets/img/background.jpg);
  .login-form-box {
    height: 500px;
    width: 400px;
    padding: 20px;
    background-color: rgba(244, 244, 244, 0.8);
    box-shadow: 0 10px 10px rgba(163, 163, 163, 0.42),
      0 0 10px rgba(194, 194, 194, 0.34);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: black;
    .el-form-item {
      width: 80%;
      margin: 20px;
    }
  }
}
</style>